package com.lzy.product.apis.impl;

import com.lzy.product.apis.OrderPayCodeServiceApi;
import com.lzy.product.dtos.OrderPayCodeDto;
import com.lzy.product.service.OrderPayCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/11/29.
 */
@Service
public class OrderPayCodeServiceApiImpl implements OrderPayCodeServiceApi {

    @Autowired
    OrderPayCodeService orderPayCodeService;

    @Override
    public Long insert(OrderPayCodeDto dto) {
        return orderPayCodeService.insert(dto);
    }

    @Override
    public Boolean update(OrderPayCodeDto dto) {
        return orderPayCodeService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return orderPayCodeService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return orderPayCodeService.remove(id);
    }

    @Override
    public OrderPayCodeDto findById(Long id) {
        return orderPayCodeService.findById(id);
    }

    @Override
    public List<OrderPayCodeDto> query(OrderPayCodeDto dto) {
        return orderPayCodeService.query(dto);
    }

    @Override
    public List<OrderPayCodeDto> selectList(OrderPayCodeDto dto) {
        return orderPayCodeService.selectList(dto);
    }
}
